package com.jdzy.student.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jdzy.model.common.vos.Result;
import com.jdzy.model.teacher.dtos.LoginDto;
import com.jdzy.model.teacher.dtos.SysUserDto;
import com.jdzy.model.teacher.pojos.SysUser;
import com.jdzy.model.teacher.vos.LoginVo;
import org.springframework.transaction.annotation.Transactional;

public interface SysUserService extends IService<SysUser> {

    LoginVo login(LoginDto loginDto);

    Result getTeacherInfo(String token);

    @Transactional
    Result getSysUserById(String userName);
    void saveSysUser(SysUser sysUser);

    void updateSysUser(SysUser sysUser);

    void deleteById(Long userId);


    IPage<SysUser> findByPage(long current, long size);
}
